﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Bas;
using nERP.Model;

namespace nERP.ViewModel.Bas.WarehouseVMs
{
    public partial class WarehouseTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Warehouse._WarehouseCode")]
        public ExcelPropety WarehouseCode_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.WarehouseCode);
        [Display(Name = "_Model._Warehouse._WarehouseName")]
        public ExcelPropety WarehouseName_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.WarehouseName);
        [Display(Name = "_Model._Warehouse._Address")]
        public ExcelPropety Address_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.Address);
        [Display(Name = "_Model._Warehouse._StorageFee")]
        public ExcelPropety StorageFee_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.StorageFee);
        [Display(Name = "_Model._Warehouse._ChargePerson")]
        public ExcelPropety ChargePerson_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.ChargePersonId);
        [Display(Name = "_Model._Warehouse._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.Remark);
        //[Display(Name = "_Model._Warehouse._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.CreateTime, true);
        //[Display(Name = "_Model._Warehouse._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._Warehouse._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.CreateBy);
        //[Display(Name = "_Model._Warehouse._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.UpdateBy);
        //[Display(Name = "_Model._Warehouse._IsValid")]
        //public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.IsValid);
        //[Display(Name = "_Model._Warehouse._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<Warehouse>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class WarehouseImportVM : BaseImportVM<WarehouseTemplateVM, Warehouse>
    {
            //import

    }

}